#include <cstdio>
#include <algorithm>
using namespace std;
int main(void){
    int a,b,c,d;
    scanf("%d%d%d%d",&a,&b,&c,&d);
    int e=max(3*a/10,a-a*c/250);
    int f=max(3*b/10,b-b*d/250);
    if(e>f){
        printf("Misha\n");
    }
    else if(e<f){
        printf("Vasya\n");
    }
    else{
        printf("Tie\n");
    }
    return 0;
}
